package com.cyy.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cyy.common.pojo.vo.system.SystemArticleLikeVo;
import com.cyy.common.pojo.entity.ArticleLike;
import com.cyy.common.pojo.query.system.SystemArticleLikeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 文章点赞表 Mapper 接口
 * </p>
 *
 * @author 曹云友
 * @since 2024-04-01
 */
@Mapper
public interface ArticleLikeMapper extends BaseMapper<ArticleLike> {

    IPage<SystemArticleLikeVo> getPage(@Param("page") Page page,
                                       @Param("query") SystemArticleLikeQuery query,
                                       @Param("userId") Integer userId);
}
